obj-m := hello.o
KERNELDR :=/home/yc/N310/bsp/kernel/out
PWD := $(shell pwd)
tool :=arm-linux-gnueabihf-
modules:
	$(MAKE) -C $(KERNELDR) M=$(PWD) ARCH=arm CROSS_COMPILE=$(tool) modules
	#$(MAKE) -C $(KERNELDR) M=$(PWD) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
	#$(MAKE) -C $(KERNELDIR)  M=$(PWD) modules
modules_install:
	$(MAKE) -C $(KERNELDR) M=$(PWD) modules_install
	@echo "Done"
clean:
	rm -rf *.o  *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Mo* mo*
